<div class="content">
	<a href="<?=Request::$controller?>list/" style="font-size: 1.4em; font-weight: bold;">West Town Chamber of Commerce Events Calendar</a>
	<br /><br />
	<?=$calendarHeader['text1']?>
	<? if(!$items): ?>
	<p><? echo $error; ?></p>
	<? else: ?>
	<? foreach($items as $item): ?>
	<h3 style="color:#de4b32;"><b><?=Html::chars($item['name'])?></b></h3>
	<table width="100%" class="items">
		<tr>
			<td width="60%" class="padding10">
				<b><?=Html::chars($item['note1'])?></b>
				<br />
				<?=$item['text1']; ?>
				<? if(isset($item['url'])): ?>
				<a href="<?=$item['url'];?>" target="_blank"><?=$item['url'];?></a>
				<? endif; ?>
			</td>
			<td width="40%" class="padding10" align="center">
				<? if(isset($images[$item['id']])): ?>
					<? foreach($images[$item['id']] as $photo): ?>
						<img src="<?=$imgPath.$photo['section'].'/thumbs/'.substr($photo['alias'], 0, 1).'/'.$photo['alias']?>.jpg" alt="" class="image" />
					<? endforeach; ?>
				<? endif; ?>
			</td>
		</tr>
	</table>
	<br clear="all" />
	<? endforeach; ?>
	<? endif; ?>
	<p style="color:#d09022; font-size:14px; float:right; padding-right:20px;">
		<a href="#top" id="bottomLink">Top</a>
	</p>
</div>